package o;

import com.huawei.skinner.attrentry.SkinAttrFactory.AccessorKey;
import java.util.HashMap;

public class fpg extends HashMap<AccessorKey, Class<? extends SkinAttr>> {
    public /* synthetic */ Object put(Object obj, Object obj2) {
        return ˎ((AccessorKey) obj, (Class) obj2);
    }

    public Class<? extends SkinAttr> ˎ(AccessorKey accessorKey, Class<? extends SkinAttr> cls) {
        Class cls2 = (Class) get(accessorKey);
        if (cls2 == null) {
            return (Class) super.put(accessorKey, cls);
        }
        try {
            if (((SkinAttr) cls.newInstance()).ˋ() > ((SkinAttr) cls2.newInstance()).ˋ()) {
                return (Class) super.put(accessorKey, cls);
            }
        } catch (InstantiationException e) {
            fmq.ˎ("SkinAttrPriorityMap.put: InstantiationException: " + e.getMessage());
        } catch (IllegalAccessException e2) {
            fmq.ˎ("SkinAttrPriorityMap.put: IllegalAccessException: " + e2.getMessage());
        }
        return null;
    }
}
